package com.xpc.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xpc.mapper.AdministratorInfoMapper;
import com.xpc.pojo.AdministratorInfo;
import com.xpc.service.IAdministratorInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Project：UniversityGradeAdministrationSystem
 * Date：2022/5/4
 * Time：22:26
 * Description：TODO
 *
 * @author 南北辰的键盘
 * @version 1.0
 */
@Service
public class AdministratorInfoServiceImpl extends ServiceImpl<AdministratorInfoMapper,AdministratorInfo> implements IAdministratorInfoService {

    @Autowired
    private AdministratorInfoMapper administratorInfoMapper;

    @Override
    public Page<AdministratorInfo> getPage(int currentPage, int pageSize) {
        Page page = new Page(currentPage, pageSize);
        administratorInfoMapper.selectPage(page,null);
        return page;

    }
}
